package com.lagou.web.util;

/**
 * @AUTHOR: yb.feng
 * @DATE: 2020/6/15 22:34
 * @DESC:
 */
public class ThreadLocalUtil {

    private static ThreadLocal<String> ipThreadLocal = new ThreadLocal<>();

    public static String getIp(){
        return ipThreadLocal.get();
    }

    public static void setIp(String ip){
        ipThreadLocal.set(ip);
    }
}
